home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
allfiles
/
angry
/
intro.dir
/
00010_Script_credits frame
< prev
next >
Wrap
Text File
|
1999-03-01
|
2KB
|
95 lines
global oldMouseP
global drops
global cursorSpr
global animate
global gravite
on mouseDown
sprite(5).member = member "quitOFF"
sprite(6).member = member "creditsOFF"
go to frame "welcomeBack"
end
on enterFrame
-- main cursor
set mouseP = point(the mouseH, the mouseV)
if inside(mouseP, rect(0, 0, 640, 480)) then cursor 200
else cursor -1
set diffP = mouseP - oldMouseP
set horiz = getAt(diffP, 1)
set vert = getAt(diffP, 2)
set drop = TRUE
if horiz < -5 then
if vert < -5 then
set the member of sprite(cursorSpr) to member "northwest"
else if vert > 5 then
set the member of sprite(cursorSpr) to member "southwest"
else
set the member of sprite(cursorSpr) to member "west"
end if
else if horiz > 5 then
if vert < -5 then
set the member of sprite(cursorSpr) to member "northeast"
else if vert > 5 then
set the member of sprite(cursorSpr) to member "southeast"
else
set the member of sprite(cursorSpr) to member "east"
end if
else
if vert < -5 then
set the member of sprite(cursorSpr) to member "north"
else if vert > 5 then
set the member of sprite(cursorSpr) to member "south"
else
set the member of sprite(cursorSpr) to member "stop"
set drop = FALSE
end if
end if
set the loc of sprite cursorSpr to mouseP
-- little droplets
repeat with a = 1 to count(drops)
set doMe = getAt(drops, a)
check doMe
end repeat
if random(2) = 2 AND drop then
repeat with a = 1 to count(drops)
set doMe = getAt(drops, a)
if not(the pActive of doMe) then
drop doMe, cursorSpr
exit repeat
end if
end repeat
end if
set oldMouseP = point(the mouseH, the mouseV)
end
on exitFrame
go to the frame
end